
function p1(){
    return new Promise((resolve,reject)=>{
        setTimeout(resolve,2000)
    })
}
 function run (){
    try{
         p1()
        console.log('try')
    }catch (err){
        console.log('err',err)
    }finally {
        console.log('finally')
    }
}
run()